package demo.service;

import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;


//@Service
public class SimpleUserDetailsService /*implements UserDetailsService*/ {
	
	//@Override
	public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
		
		return User.withDefaultPasswordEncoder().username(username).password(username).roles("USER").build();		
	}
}
